<template>
  <section class="com-con">
    <div class="con-top">
      <el-form :inline="true" :model="formInline">
        <el-form-item label="会议室类型">
          <el-select v-model="formInline.region" placeholder="请选择">
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="" class="f-right searchInput">
          <el-input v-model="formInline.name" placeholder="请输入会议室名称"></el-input>
          <el-button type="primary">搜索</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="con-bottom">
      <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column prop="date" label="会议室名称" min-width="100"></el-table-column>
        <el-table-column prop="date" label="归属" min-width="80"></el-table-column>
        <el-table-column prop="date" label="会议议题" min-width="80"></el-table-column>
        <el-table-column prop="date" label="参会方数量" min-width="80"></el-table-column>
        <el-table-column prop="isMeeting" label="会议中" min-width="80">
          <template slot-scope="scope">
            {{scope.row.isMeeting=="1"?"会议中":"未开会"}}
          </template>
        </el-table-column>
        <el-table-column prop="" label="操作" width="90">
          <template slot-scope="scope">
            <el-button type="success" size="mini" @click="changeView('meetingManage','123')">管理</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </section>
</template>

<script>
  export default {
    name: "inMeeting",
    msg: "",
    data() {
      return {
        formInline: {},
        tableData: [{isMeeting: "1"}, {isMeeting: "0"}, {isMeeting: "1"}]
      }
    },
    methods: {
      changeView(name, id) {
        let query = {
          id: id
        }
        this.$router.push({name: name, query: query});
      }
    }
  }
</script>

<style lang="less">

</style>
